<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      6.63.&nbsp;Sysklogd-1.5.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0
      </h4>
      <h3>
        Chapter&nbsp;6.&nbsp;Installing Basic System Software
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="patch.html" title="Patch-2.7.5">Prev</a>
          <p>
            Patch-2.7.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sysvinit.html" title=
          "Sysvinit-2.88dsf">Next</a>
          <p>
            Sysvinit-2.88dsf
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">Home</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-sysklogd" name="ch-system-sysklogd"></a>6.63.
        Sysklogd-1.5.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          The Sysklogd package contains programs for logging system messages,
          such as those given by the kernel when unusual things happen.
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Approximate build time:</strong>
              <span class="segbody">less than 0.1 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Required disk space:</strong>
              <span class="segbody">0.6 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.63.1. Installation of Sysklogd
        </h2>
        <p>
          First, fix problems that causes a segmentation fault under some
          conditions in klogd and fix an obsolete program construct:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
sed -i 's/union wait/int/' syslogd.c</kbd>
</pre>
        <p>
          Compile the package:
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Install the package:
        </p>
        <pre class="userinput">
<kbd class="command">make BINDIR=/sbin install</kbd>
</pre>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="conf-sysklogd" name="conf-sysklogd"></a>6.63.2. Configuring
          Sysklogd
        </h2>
        <p>
          Create a new <code class="filename">/etc/syslog.conf</code> file by
          running the following:
        </p>
        <pre class="userinput">
<kbd class="command">cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
<code class="literal"># Begin /etc/syslog.conf

auth,authpriv.* -/var/log/auth.log
*.*;auth,authpriv.none -/var/log/sys.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
*.emerg *

# End /etc/syslog.conf</code>
EOF</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-sysklogd" name="contents-sysklogd"></a>6.63.3.
          Contents of Sysklogd
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed programs:</strong>
              <span class="segbody">klogd and syslogd</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="klogd" name="klogd"></a><span class=
                    "term"><span class=
                    "command"><strong>klogd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    A system daemon for intercepting and logging kernel
                    messages
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="syslogd" name="syslogd"></a><span class=
                    "term"><span class=
                    "command"><strong>syslogd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Logs the messages that system programs offer for logging
                    [Every logged message contains at least a date stamp and
                    a hostname, and normally the program's name too, but that
                    depends on how trusting the logging daemon is told to
                    be.]
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="patch.html" title="Patch-2.7.5">Prev</a>
          <p>
            Patch-2.7.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sysvinit.html" title=
          "Sysvinit-2.88dsf">Next</a>
          <p>
            Sysvinit-2.88dsf
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
